<p-dialog [(visible)]="display" modal="modal"  [responsive]="true" [width]="width" (onHide)="closeInspectionMask(false)">
  <p-header>
    修改巡检对象
  </p-header>
  <div class="ui-g">
    <div class="ui-g-12">
      <div class="file-box">
        <form class="form-horizontal" >
          <div class="form-group">
            <label  class="col-sm-2 control-label">区域:</label>
            <div class="col-sm-9">
              <input type="text" name="region" class="form-control" [(ngModel)]="currentInspection.region" >
            </div>
          </div>
          <div class="form-group">
            <label  class="col-sm-2 control-label">巡检对象:</label>
            <div class="col-sm-9">
              <input type="text" name="object" class="form-control" [(ngModel)]="currentInspection.object" >
            </div>
          </div>
          <div class="form-group">
            <label  class="col-sm-2 control-label">巡检内容:</label>
            <div class="col-sm-9">
              <input type="text" name="content" class="form-control" [(ngModel)]="currentInspection.content" >
            </div>
          </div>

          <div class="form-group">
            <label  class="col-sm-2 control-label">类型:</label>
            <div class="col-sm-9 ui-fluid">
              <p-dropdown [options]="inspectionCycles" [(ngModel)]="currentInspection.object_type" [autoWidth]="false" name="object_type" ></p-dropdown>
            </div>
          </div>
          <div class="form-group">
            <label  class="col-sm-2 control-label">参考值:</label>
            <div class="col-sm-9">
              <input type="text" name="reference_value" class="form-control" [(ngModel)]="currentInspection.reference_value" >
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <p-footer>
    <button type="button" pButton icon="fa-check" label="确定" (click)="formSubmit(false)"></button>
    <button type="button" pButton icon="fa-close"  label="取消" (click)="closeInspectionMask(false)"></button>
  </p-footer>
</p-dialog>
